home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 1 / CU Amiga Magazine CD-ROM Special Edition (1995)(EMAP Images)(GB)[Issue 1995-11].iso / Aminet / comm / tcp / ATCP_sdk_40_gc.lha / AmiTCP-4.0-gcc / src / netlib / Makefile.gcc < prev    next >
Makefile  |  1995-03-13  |  2KB  |  69 lines

  1. #
  2. #    $Id: GNUmakefile,v 4.3 1994/09/30 05:17:08 jraja Exp $
  3. #
  4. #    GNUmakefile for AmiTCP/IP network support library
  5. #
  6. #    Copyright © 1994 AmiTCP/IP Group,
  7. #             Network Solutions Development Inc.
  8. #             All rights reserved.
  9. #
  10.  
  11. MAKE = make
  12.  
  13. RM= delete
  14. RM_RECURSIVE= delete all
  15. MKDIR= makedir
  16. CC= sc
  17.  
  18. DIST_LIB = $(DIST)/netlib
  19.  
  20. CFLAGS=
  21.  
  22. LD=
  23.  
  24. NETLIBSRC= strerror.c autoinit.c dummy.c lineread.c \
  25.     getopt.c printfault.c stubs.c perror.c herror.c \
  26.     timerinit.c gettimeofday.c rcmd.c syslog.c \
  27.     getpid.c chmod.c chown.c utime.c popen.c sleep.c usleep.c \
  28.     printuserfault.c init_usergroup.c setegid.c seteuid.c \
  29.     _dup.c _dup2.c stat.c _fstat.c fib.c dostat.c access.c \
  30.     _allocufb.c _chkufb.c _close.c _lseek.c _open.c _read.c \
  31.     _write.c fhopen.c ioctl.c iomode.c isatty.c \
  32.     init_inet_daemon.c set_socket_stdio.c serveraccept.c \
  33.     netlib.h fibex.h \
  34.     linkaddr.c linkntoa.c \
  35.     dosio_init.c dosio_sprintf.c
  36.  
  37. SANA2LIBSRC= sana2perror.c sana2errlist.c sana2printfault.c
  38.  
  39. LIBSRC= $(NETLIBSRC) $(SANA2LIBSRC)
  40.  
  41. SRCS=    $(LIBSRC) GNUmakefile Smakefile
  42.  
  43. all:
  44.  
  45. DIST: $(DIST_LIB)
  46.  
  47. $(DIST_LIB): $(SRCS)
  48.     test -d $(DIST) || mkdir $(DIST)
  49.     test -d $(DIST_LIB) || mkdir $(DIST_LIB)
  50.     tar cf - $(SRCS) | (cd $(DIST_LIB); tar xf -)
  51.  
  52. RELEASE: $(SRCS)
  53.     for F in $(SRCS) ; do \
  54.       rlog -R $$F && { \
  55.         if ident -q $$F | fgrep '$$' >/dev/null ; \
  56.           then /rcs/rcs -q '-N$(RELEASE):$$' $$F ; \
  57.           else /rcs/rcs -q '-N$(RELEASE):' $$F ;\
  58.         fi ; \
  59.       } ;\
  60.     done
  61.  
  62. locks:
  63.     @rlog -R -L $(SRCS)
  64. mylocks:
  65.     @rlog -R -l`whoami` -L $(SRCS)
  66. verlocks:
  67.     @rlog -h -L $(CSRCS)
  68.  
  69.